package com.dc.project_java.test.lazy;

import android.content.Context;

import com.dc.base.view.recyclerview.commonadapter.CommonRecyclerAdapter;
import com.dc.base.view.recyclerview.commonadapter.ViewHolder;
import com.dc.project_java.R;

import java.util.ArrayList;

public class LazyAdapter extends CommonRecyclerAdapter<JueJinBean.DataBean> {

    public LazyAdapter(Context context) {
        super(context, new ArrayList<>(), R.layout.item_jue_jin);
    }

    @Override
    protected void convert(ViewHolder holder, JueJinBean.DataBean dataBean, int position) {
        holder.setText(R.id.title, dataBean.getArticle_info().getTitle())
                .setText(R.id.content, dataBean.getArticle_info().getBrief_content());
    }
}
